Integrand size = 24, antiderivative size = 485 \[ \int \frac {(e x)^{-1+3 n}}{a+b \sec \left (c+d x^n\right )} \, dx=\frac {(e x)^{3 n}}{3 a e n}+\frac {i b x^{-n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d e n}-\frac {i b x^{-n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d e n}+\frac {2 b x^{-2 n} (e x)^{3 n} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2 e n}-\frac {2 b x^{-2 n} (e x)^{3 n} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2 e n}+\frac {2 i b x^{-3 n} (e x)^{3 n} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3 e n}-\frac {2 i b x^{-3 n} (e x)^{3 n} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3 e n} \]
[Out]
Time = 1.10 (sec) , antiderivative size = 485, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.375, Rules used = {4293, 4289, 4276, 3402, 2296, 2221, 2611, 2320, 6724} \[ \int \frac {(e x)^{-1+3 n}}{a+b \sec \left (c+d x^n\right )} \, dx=\frac {2 i b x^{-3 n} (e x)^{3 n} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (d x^n+c\right )}}{b-\sqrt {b^2-a^2}}\right )}{a d^3 e n \sqrt {b^2-a^2}}-\frac {2 i b x^{-3 n} (e x)^{3 n} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (d x^n+c\right )}}{b+\sqrt {b^2-a^2}}\right )}{a d^3 e n \sqrt {b^2-a^2}}+\frac {2 b x^{-2 n} (e x)^{3 n} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (d x^n+c\right )}}{b-\sqrt {b^2-a^2}}\right )}{a d^2 e n \sqrt {b^2-a^2}}-\frac {2 b x^{-2 n} (e x)^{3 n} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (d x^n+c\right )}}{b+\sqrt {b^2-a^2}}\right )}{a d^2 e n \sqrt {b^2-a^2}}+\frac {i b x^{-n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{b-\sqrt {b^2-a^2}}\right )}{a d e n \sqrt {b^2-a^2}}-\frac {i b x^{-n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{\sqrt {b^2-a^2}+b}\right )}{a d e n \sqrt {b^2-a^2}}+\frac {(e x)^{3 n}}{3 a e n} \]
[In]
[Out]
Rule 2221
Rule 2296
Rule 2320
Rule 2611
Rule 3402
Rule 4276
Rule 4289
Rule 4293
Rule 6724
Rubi steps \begin{align*} \text {integral}& = \frac {\left (x^{-3 n} (e x)^{3 n}\right ) \int \frac {x^{-1+3 n}}{a+b \sec \left (c+d x^n\right )} \, dx}{e} \\ & = \frac {\left (x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {x^2}{a+b \sec (c+d x)} \, dx,x,x^n\right )}{e n} \\ & = \frac {\left (x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \left (\frac {x^2}{a}-\frac {b x^2}{a (b+a \cos (c+d x))}\right ) \, dx,x,x^n\right )}{e n} \\ & = \frac {(e x)^{3 n}}{3 a e n}-\frac {\left (b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {x^2}{b+a \cos (c+d x)} \, dx,x,x^n\right )}{a e n} \\ & = \frac {(e x)^{3 n}}{3 a e n}-\frac {\left (2 b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^2}{a+2 b e^{i (c+d x)}+a e^{2 i (c+d x)}} \, dx,x,x^n\right )}{a e n} \\ & = \frac {(e x)^{3 n}}{3 a e n}-\frac {\left (2 b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^2}{2 b-2 \sqrt {-a^2+b^2}+2 a e^{i (c+d x)}} \, dx,x,x^n\right )}{\sqrt {-a^2+b^2} e n}+\frac {\left (2 b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {e^{i (c+d x)} x^2}{2 b+2 \sqrt {-a^2+b^2}+2 a e^{i (c+d x)}} \, dx,x,x^n\right )}{\sqrt {-a^2+b^2} e n} \\ & = \frac {(e x)^{3 n}}{3 a e n}+\frac {i b x^{-n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d e n}-\frac {i b x^{-n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d e n}-\frac {\left (2 i b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int x \log \left (1+\frac {2 a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,x^n\right )}{a \sqrt {-a^2+b^2} d e n}+\frac {\left (2 i b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int x \log \left (1+\frac {2 a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,x^n\right )}{a \sqrt {-a^2+b^2} d e n} \\ & = \frac {(e x)^{3 n}}{3 a e n}+\frac {i b x^{-n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d e n}-\frac {i b x^{-n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d e n}+\frac {2 b x^{-2 n} (e x)^{3 n} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2 e n}-\frac {2 b x^{-2 n} (e x)^{3 n} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2 e n}-\frac {\left (2 b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \operatorname {PolyLog}\left (2,-\frac {2 a e^{i (c+d x)}}{2 b-2 \sqrt {-a^2+b^2}}\right ) \, dx,x,x^n\right )}{a \sqrt {-a^2+b^2} d^2 e n}+\frac {\left (2 b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \operatorname {PolyLog}\left (2,-\frac {2 a e^{i (c+d x)}}{2 b+2 \sqrt {-a^2+b^2}}\right ) \, dx,x,x^n\right )}{a \sqrt {-a^2+b^2} d^2 e n} \\ & = \frac {(e x)^{3 n}}{3 a e n}+\frac {i b x^{-n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d e n}-\frac {i b x^{-n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d e n}+\frac {2 b x^{-2 n} (e x)^{3 n} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2 e n}-\frac {2 b x^{-2 n} (e x)^{3 n} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2 e n}+\frac {\left (2 i b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (2,\frac {a x}{-b+\sqrt {-a^2+b^2}}\right )}{x} \, dx,x,e^{i \left (c+d x^n\right )}\right )}{a \sqrt {-a^2+b^2} d^3 e n}-\frac {\left (2 i b x^{-3 n} (e x)^{3 n}\right ) \text {Subst}\left (\int \frac {\operatorname {PolyLog}\left (2,-\frac {a x}{b+\sqrt {-a^2+b^2}}\right )}{x} \, dx,x,e^{i \left (c+d x^n\right )}\right )}{a \sqrt {-a^2+b^2} d^3 e n} \\ & = \frac {(e x)^{3 n}}{3 a e n}+\frac {i b x^{-n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d e n}-\frac {i b x^{-n} (e x)^{3 n} \log \left (1+\frac {a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d e n}+\frac {2 b x^{-2 n} (e x)^{3 n} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2 e n}-\frac {2 b x^{-2 n} (e x)^{3 n} \operatorname {PolyLog}\left (2,-\frac {a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^2 e n}+\frac {2 i b x^{-3 n} (e x)^{3 n} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d x^n\right )}}{b-\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3 e n}-\frac {2 i b x^{-3 n} (e x)^{3 n} \operatorname {PolyLog}\left (3,-\frac {a e^{i \left (c+d x^n\right )}}{b+\sqrt {-a^2+b^2}}\right )}{a \sqrt {-a^2+b^2} d^3 e n} \\ \end{align*}
\[ \int \frac {(e x)^{-1+3 n}}{a+b \sec \left (c+d x^n\right )} \, dx=\int \frac {(e x)^{-1+3 n}}{a+b \sec \left (c+d x^n\right )} \, dx \]
[In]
[Out]
\[\int \frac {\left (e x \right )^{3 n -1}}{a +b \sec \left (c +d \,x^{n}\right )}d x\]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 1711 vs. \(2 (445) = 890\).
Time = 0.51 (sec) , antiderivative size = 1711, normalized size of antiderivative = 3.53 \[ \int \frac {(e x)^{-1+3 n}}{a+b \sec \left (c+d x^n\right )} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {(e x)^{-1+3 n}}{a+b \sec \left (c+d x^n\right )} \, dx=\int \frac {\left (e x\right )^{3 n - 1}}{a + b \sec {\left (c + d x^{n} \right )}}\, dx \]
[In]
[Out]
\[ \int \frac {(e x)^{-1+3 n}}{a+b \sec \left (c+d x^n\right )} \, dx=\int { \frac {\left (e x\right )^{3 \, n - 1}}{b \sec \left (d x^{n} + c\right ) + a} \,d x } \]
[In]
[Out]
\[ \int \frac {(e x)^{-1+3 n}}{a+b \sec \left (c+d x^n\right )} \, dx=\int { \frac {\left (e x\right )^{3 \, n - 1}}{b \sec \left (d x^{n} + c\right ) + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(e x)^{-1+3 n}}{a+b \sec \left (c+d x^n\right )} \, dx=\int \frac {{\left (e\,x\right )}^{3\,n-1}}{a+\frac {b}{\cos \left (c+d\,x^n\right )}} \,d x \]
[In]
[Out]